/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * InfoPanel.java
 *
 * Created on 2011-7-26, 16:49:46
 */
package edu.qmul.ns2.line;

import edu.qmul.ns2.MainFrame;
import javax.swing.SwingUtilities;

/**
 *
 * @author Moon
 */
public class XYInfoPanel extends javax.swing.JPanel {

    /** Creates new form InfoPanel */
    public XYInfoPanel() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();
        endNodeIDText = new javax.swing.JTextField();
        jLabel2 = new javax.swing.JLabel();
        jTextFieldY0 = new javax.swing.JTextField();
        jLabel3 = new javax.swing.JLabel();
        jTextFieldX1 = new javax.swing.JTextField();
        jLabel4 = new javax.swing.JLabel();
        jTextFieldY1 = new javax.swing.JTextField();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        jTextFieldX0 = new javax.swing.JTextField();
        jLabel8 = new javax.swing.JLabel();
        startNodeIDText = new javax.swing.JTextField();

        setLayout(null);

        jLabel1.setText("ID:");
        add(jLabel1);
        jLabel1.setBounds(120, 40, 18, 21);

        endNodeIDText.setEditable(false);
        endNodeIDText.setFocusable(false);
        add(endNodeIDText);
        endNodeIDText.setBounds(150, 40, 50, 21);

        jLabel2.setText("Y0:");
        add(jLabel2);
        jLabel2.setBounds(340, 10, 18, 21);

        jTextFieldY0.setEditable(false);
        jTextFieldY0.setFocusable(false);
        add(jTextFieldY0);
        jTextFieldY0.setBounds(380, 10, 85, 21);

        jLabel3.setText("X1:");
        add(jLabel3);
        jLabel3.setBounds(210, 40, 18, 21);

        jTextFieldX1.setEditable(false);
        jTextFieldX1.setFocusable(false);
        add(jTextFieldX1);
        jTextFieldX1.setBounds(240, 40, 85, 21);

        jLabel4.setText("Y1:");
        add(jLabel4);
        jLabel4.setBounds(340, 40, 18, 21);

        jTextFieldY1.setEditable(false);
        jTextFieldY1.setFocusable(false);
        add(jTextFieldY1);
        jTextFieldY1.setBounds(380, 40, 85, 21);

        jLabel5.setText("EndNode:");
        add(jLabel5);
        jLabel5.setBounds(10, 40, 60, 21);

        jLabel6.setText("StartNode:");
        add(jLabel6);
        jLabel6.setBounds(10, 10, 60, 21);

        jLabel7.setText("X0:");
        add(jLabel7);
        jLabel7.setBounds(210, 10, 18, 21);

        jTextFieldX0.setEditable(false);
        jTextFieldX0.setFocusable(false);
        add(jTextFieldX0);
        jTextFieldX0.setBounds(240, 10, 85, 21);

        jLabel8.setText("ID:");
        add(jLabel8);
        jLabel8.setBounds(120, 10, 18, 21);

        startNodeIDText.setEditable(false);
        startNodeIDText.setFocusable(false);
        add(startNodeIDText);
        startNodeIDText.setBounds(150, 10, 50, 21);
    }// </editor-fold>//GEN-END:initComponents

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JTextField endNodeIDText;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JTextField jTextFieldX0;
    private javax.swing.JTextField jTextFieldX1;
    private javax.swing.JTextField jTextFieldY0;
    private javax.swing.JTextField jTextFieldY1;
    private javax.swing.JTextField startNodeIDText;
    // End of variables declaration//GEN-END:variables

    public void setX0(String value) {
        jTextFieldX0.setText(value);
    }

    public void setY0(String value) {
        jTextFieldY0.setText(value);
    }

    public void setX1(String value) {
        jTextFieldX1.setText(value);
    }

    public void setY1(String value) {
        jTextFieldY1.setText(value);
    }

    /**
     * @param endNodeIDText the endNodeIDText to set
     */
    public void setEndNodeIDText(String endNodeIDText) {
        this.endNodeIDText.setText(endNodeIDText);
    }

    /**
     * @param startNodeIDText the startNodeIDText to set
     */
    public void setStartNodeIDText(String startNodeIDText) {
        this.startNodeIDText.setText(startNodeIDText);
    }
}
